<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/html5shiv.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/js/action.js"></script>

    <title>回收订单列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 回收系统管理 <span class="c-gray en">&gt;</span> 回收产品列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
    <form class="Huiform" method="post" action="" target="_self">
        <input type="text" class="input-text" style="width:250px" placeholder="关键字" id="name" value="{$keyword}">
        <span class="select-box" style="width:150px">
        <select class="select" id="huishou">
            <option value="">回收方式</option>
             <option <?php if($status == '0'){?> selected="selected" <?php }?> value ="0">上门回收</option>  
					  <option <?php if($status == '1'){?> selected="selected" <?php }?> value ="1">邮件回收</option> 
        </select>
        </span>
         <span class="select-box" style="width:150px">
        <select class="select" id="sta">
            <option value="">订单状态</option>
             <option <?php if($type == '1'){?> selected="selected" <?php }?> value ="1">以完成</option>  
			<option <?php if($type == '0'){?> selected="selected" <?php }?>  value ="0">进行中</option> 
        </select>
        </span>
        <button type="button" class="btn btn-success" id="" name="" onclick="product_option(0);"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    </div>
    <br>
    <table class="table table-border table-bordered table-bg">
        <thead>

        <tr class="text-c">
            <th width="100">订单号/卖家信息</th>
            <th width="50">手机型号</th>
            <th width="50">联系电话</th>
            <th width="40">订单价</th>
            <th width="80">订单方式/状态</th>
            <th width="40">下单时间</th>
            <th width="40">操作</th>
        </tr>
        </thead>


        <tbody id="news_option">
        <!-- 遍历 -->
        <volist name="order" id="v" empty="暂时没有数据">
            <tr class="text-c">
                <td><a href="{:U('Replyproduct/detail',array('id'=>$v['id']))}">{$v.id}</a>|
                	<a href="{:U('Replyproduct/user',array('id'=>$v['id']))}">查看卖家信息</a>
                </td>
                <td>{$v.pname}</td>
                <td>{$v.mobile}</td>
                <td>{$v.price}</td>
                <td><?php if($v['way']) {?> 邮件回收  <?php if($v['status'] == -1) {?> <span  style="color:red;">(未发货)</span> <?php }?><?php }else{?>  上门回收 <?php }?></td>
                <td>{$v.ctime}</td>
                <td>
                	
                	<if condition="$v['way'] eq 1"> 
					<if condition="$v['status'] eq 1"> 
						已完成
					</if>
					<if condition="$v['status'] eq 0"> 
						进行中|<a data-msg="确定付款吗？" href="{:U('Replyproduct/price',array('id'=>$v['id']))}">确认付款</a>
					</if>
					<if condition="$v['status'] eq -1"> 
						未收货|<a  data-msg="确定收货吗？" href="{:U('Replyproduct/update',array('id'=>$v['id']))}">确认收货</a>
					</if>
				<else />
					<if condition="$v['status'] eq 1"> 
						已完成
					<else />
						进行中|<a data-msg="确定收货吗？" href="{:U('Replyproduct/price',array('id'=>$v['id']))}">确认收完</a>
					</if>
				</if>
                </td>
            </tr>
        </volist>
        <!-- 遍历 -->
        </tbody>
        <tr>
            <td colspan="10" class="td_2">
                {$page_index}
            </td>
        </tr>
    </table>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<script>
 function product_option(page){

        var pid = $('#pid').val();
        if(pid == ''){
            pid = $('#ppid').val();
        }
        var obj={
            "keyword":$("#name").val(),
            "status":$("#huishou").val(),
            "type":$("#sta").val()
        }
       
        var url='?page='+page;
         
        $.each(obj,function(a,b,c){
            url+='&'+a+'='+b;
        });
         console.log(url);
        location=url;
    }
</script>

</body>
</html>